<template>
  <div v-html="html" style="margin: 20px;"></div>
</template>

<script>
import { selectOperation } from '@/api/system/setting'

export default {
  data () {
    return {
      html: ''
    }
  },
  async created () {
    const en = this.$store.state.app.lang === 'en-US' ? '_en' : ''
    if (this.$route.query.type) {
      const res = await selectOperation({
        firstKey: 'code_authorization',
        secondKey: 'epayment' + en
      })
      this.html = res.content
    } else {
      const res = await selectOperation({
        firstKey: 'agreement',
        secondKey: 'epayment_content' + en
      })
      this.html = res.content
    }
  }
}
</script>

<style scoped>
</style>
